modules := fat32 ext4 base

.PHONY: build clean $(modules)

$(modules):
	$(MAKE) build --directory=$@

build: $(modules)

clean:
	for d in $(modules); \
		do \
			$(MAKE) clean --directory=$$d; \
		done
	rm -rf *~ *.o *.d